udebug-cli: cosmetic fix
authorFelix Fietkau <[email protected]>
Tue, 14 Nov 2023 11:30:59 +0000 (12:30 +0100)
committerFelix Fietkau <[email protected]>
Tue, 14 Nov 2023 11:30:59 +0000 (12:30 +0100)
Signed-off-by: Felix Fietkau <[email protected]>
udebug-cli

index 9c4279d0efd046ce6bd367c3265916f1b6fe78ed..0fbf3a0ddc66cdb5ca3a48a83c2bfe484dc336bd 100755 (executable)
@@ -46,7 +46,7 @@ while (substr(ARGV[0], 0, 1) == "-") {
        let opt = substr(shift(ARGV), 1);
        switch(opt) {
        case 'd':
-               opts.duration = 1.0 * shift(ARGV);
+               opts.duration = +shift(ARGV);
                break;
        case 's':
                opts.socket = shift(ARGV);